/**
 * 
 */
package com.bolbachchan.blog.form.common;

import com.bolbachchan.blog.dto.LoginDTO;

/**
 * @author Chaitanya
 * 
 */
public class LoginFormObj {
	private LoginDTO loginDTO;

	/**
	 * @return the loginDTO
	 */
	public LoginDTO getLoginDTO() {
		if (loginDTO == null) {
			loginDTO = new LoginDTO();
		}
		return loginDTO;
	}

	/**
	 * @param loginDTO
	 *            the loginDTO to set
	 */
	public void setLoginDTO(LoginDTO loginDTO) {
		this.loginDTO = loginDTO;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return getLoginDTO().getUsername();
	}

	/**
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username) {
		getLoginDTO().setUsername(username);
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return getLoginDTO().getPassword();
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		getLoginDTO().setPassword(password);
	}
}
